cmake_minimum_required(VERSION 3.0.2)
project(laser_lines_extraction)

## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)

find_package(catkin REQUIRED COMPONENTS
        dynamic_reconfigure
        geometry_msgs
        message_generation
        roscpp
        rosmsg
        sensor_msgs
        std_msgs
        tf2
        tf2_geometry_msgs
        tf2_ros
        pcl_conversions
        visualization_msgs
        )

find_package(Eigen3 REQUIRED)


catkin_package(
#          INCLUDE_DIRS include
#          LIBRARIES laser_lines_extraction
#          CATKIN_DEPENDS dynamic_reconfigure geometry_msgs message_generation roscpp rosmsg sensor_msgs std_msgs tf2 tf2_geometry_msgs tf2_ros visualization_msgs
#          DEPENDS system_lib
)

include_directories(
        include/laser_lines_extraction
        ${catkin_INCLUDE_DIRS}
)

include_directories(include ${catkin_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS})
file(GLOB_RECURSE SOURCE_PATH ./src/*.cpp)
add_executable(${PROJECT_NAME}_node ${SOURCE_PATH})
target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES})

